package com.yuyou.activity.ts.service.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ActivityTsQuestionAnswerConfig implements Serializable {
    /**
     * 主键
     */
    private Long activityTsQuestionAnswerConfigId;

    /**
     * 项目代码
     */
    private String projectCode;

    /**
     * 答题分班题干主键
     */
    private Long activityTsQuestionConfigId;

    /**
     * 选项（A.B.C.D）
     */
    private String answerPre;

    /**
     * 选项
     */
    private String answerArea;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getActivityTsQuestionAnswerConfigId() {
        return activityTsQuestionAnswerConfigId;
    }

    public void setActivityTsQuestionAnswerConfigId(Long activityTsQuestionAnswerConfigId) {
        this.activityTsQuestionAnswerConfigId = activityTsQuestionAnswerConfigId;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public Long getActivityTsQuestionConfigId() {
        return activityTsQuestionConfigId;
    }

    public void setActivityTsQuestionConfigId(Long activityTsQuestionConfigId) {
        this.activityTsQuestionConfigId = activityTsQuestionConfigId;
    }

    public String getAnswerPre() {
        return answerPre;
    }

    public void setAnswerPre(String answerPre) {
        this.answerPre = answerPre;
    }

    public String getAnswerArea() {
        return answerArea;
    }

    public void setAnswerArea(String answerArea) {
        this.answerArea = answerArea;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActivityTsQuestionAnswerConfig other = (ActivityTsQuestionAnswerConfig) that;
        return (this.getActivityTsQuestionAnswerConfigId() == null ? other.getActivityTsQuestionAnswerConfigId() == null : this.getActivityTsQuestionAnswerConfigId().equals(other.getActivityTsQuestionAnswerConfigId()))
            && (this.getProjectCode() == null ? other.getProjectCode() == null : this.getProjectCode().equals(other.getProjectCode()))
            && (this.getActivityTsQuestionConfigId() == null ? other.getActivityTsQuestionConfigId() == null : this.getActivityTsQuestionConfigId().equals(other.getActivityTsQuestionConfigId()))
            && (this.getAnswerPre() == null ? other.getAnswerPre() == null : this.getAnswerPre().equals(other.getAnswerPre()))
            && (this.getAnswerArea() == null ? other.getAnswerArea() == null : this.getAnswerArea().equals(other.getAnswerArea()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActivityTsQuestionAnswerConfigId() == null) ? 0 : getActivityTsQuestionAnswerConfigId().hashCode());
        result = prime * result + ((getProjectCode() == null) ? 0 : getProjectCode().hashCode());
        result = prime * result + ((getActivityTsQuestionConfigId() == null) ? 0 : getActivityTsQuestionConfigId().hashCode());
        result = prime * result + ((getAnswerPre() == null) ? 0 : getAnswerPre().hashCode());
        result = prime * result + ((getAnswerArea() == null) ? 0 : getAnswerArea().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", activityTsQuestionAnswerConfigId=").append(activityTsQuestionAnswerConfigId);
        sb.append(", projectCode=").append(projectCode);
        sb.append(", activityTsQuestionConfigId=").append(activityTsQuestionConfigId);
        sb.append(", answerPre=").append(answerPre);
        sb.append(", answerArea=").append(answerArea);
        sb.append(", sort=").append(sort);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}